﻿using System.Collections.Generic;

namespace MathSolution
{
    public static class Extensions
    {
        public static int Product(this IEnumerable<int> numbers)
        {
            var product = 1;

            foreach (var i in numbers)
            {
                product *= i;
            }

            return product;
        }
    }
}
